﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="AlertLayout.aspx.cs" Inherits="AlertLayout" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
 <script type="text/javascript">     //页面初始化的时候
     var staticsignal;
     $(function () {

         $(":input.ui-button-icons-only").click();  //更改textbox的样式

     });
     function buttonclick(e) {
         var offset = e.offset(); //得到offset
         var x = offset.left;
         var y = offset.top;
         $("#editdialog").dialog({
             autoOpen: true,
             draggable: true,
             resizable: false,
             position: [x, y + 35],  //设置坐标
             width: 150
         });
         //$(".ui-dialog-titlebar").hide();
         //$('a.ui-dialog-titlebar-close').hide();
         staticsignal = e;
     }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<asp:TextBox ID="tbOperation2" runat="server" onclick="buttonclick($(this))"  CssClass="ui-button-icons-only" Text="按钮"></asp:TextBox>
    <div id="editdialog" title="Basic dialog" style="border:1px solid black;">
        <div>
            <label onclick="clickEdit();" class="labelbutton">
                Edit</label>
        </div>
        <div>
            <label onclick="clickView();" class="labelbutton">
                View</label>
        </div>
        <div>
            <label onclick="clickBuild();" class="labelbutton">
                Build</label>
        </div>
    </div>
</asp:Content>

